package com.cqeec.gams.common;

import java.util.ArrayList;
import java.util.List;

import com.cqeec.gams.entity.FunctionalModule;

/**
 * 功能。
 * 
 * @author 唐礼飞
 *
 */
public class Function {
	private FunctionalModule functionGroup; // 功能组
	private List<FunctionalModule> functionalModules; // 功能组的功能模块

	public Function() {
		super();
		functionalModules = new ArrayList<FunctionalModule>();
	}

	public void addFunctionModule(FunctionalModule fm) {
		functionalModules.add(fm);
	}

	public FunctionalModule getFunctionGroup() {
		return functionGroup;
	}

	public void setFunctionGroup(FunctionalModule functionGroup) {
		this.functionGroup = functionGroup;
	}

	public List<FunctionalModule> getFunctionalModules() {
		return functionalModules;
	}

	public void setFunctionalModules(List<FunctionalModule> functionalModules) {
		this.functionalModules = functionalModules;
	}

}
